function move(n, from, to, via) {
	if (n > 0) {
		move(n-1, from, via, to)
		document.write("Move disk from " + from + " to " + to + "<br>")
		move(n-1, via, to, from)
	}
}
move(4, "1", "2", "3")
